package com.catering.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 顾客表
 *
 * @TableName customer
 */
@Data
public class Customer implements Serializable {
    /**
     * 顾客id
     */
    private Integer id;

    /**
     * 顾客姓名
     */
    private String name;

    /**
     * 顾客电话
     */
    private String phone;

    /**
     * 顾客邮箱
     */
    private String email;

    /**
     * 顾客创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    /**
     * 顾客的储值余额
     */
    private int storageMoney;

    /**
     * 顾客积分(会员)
     */
    private Integer points;

    /**
     * 会员ID
     */
    private Integer vipId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 订单列表ID
     */
    private Integer orderListId;
    //外联参数
    private Vip vip;
    private VipType viptype;
    private OrderList orderList;

    private static final long serialVersionUID = 1L;
}